// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import fastClick from 'fastclick'
import 'babel-polyfill'
import axios from './config/axios'
import store from './store'
import 'styles/reset.css'
import 'styles/border.css'
import 'styles/iconfont.css'
import './config/appback'

//身份证精准校验
import IdCard from './assets/js/IdCard'
Vue.prototype.validid = IdCard;

//加载mint-ui 框架
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI)

//图片预览
import preview from 'vue-photo-preview'
import 'vue-photo-preview/dist/skin.css'
Vue.use(preview)


import { Picker } from 'mint-ui';
Vue.component(Picker.name, Picker);

import { Popup } from 'mint-ui';
Vue.component(Popup.name, Popup);


Vue.prototype.$axios = axios
fastClick.attach(document.body)
Vue.config.productionTip = false

/* eslint-disable no-new */ 
new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
})
